package com.axin.common.core.constant;

/**
 * 缓存的key 常量
 *
 * @Author 阿欣
 * @Date 2021/8/18 19:11
 **/
public class CacheConstants {


    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 登录用户令牌有效期（分钟）
     */
    public final static long TOKEN_EXPIRE = 30;

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;


    /**
     * 资源映射路径 前缀
     */
    public static final String REDIS_LOCK_KEY = "redis_lock:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";


    /**
     * OSS模块KEY
     */
    public static final String SYS_OSS_KEY = "sys_oss:";

    /**
     * 对象存储配置KEY
     */
    public static final String CLOUD_STORAGE_CONFIG_KEY = "CloudStorageConfig";

    /**
     * 缓存配置KEY
     */
    public static final String CACHE_CONFIG_KEY = SYS_OSS_KEY + CLOUD_STORAGE_CONFIG_KEY;


    /**
     * 客户端用户 redis key
     */
    public static final String WEB_LOGIN_TOKEN_KEY = "web_login_tokens:";

}
